package com.crm.model.vo.returnMoney;

import com.crm.common.util.DateUtil;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @Author: chaifuyou
 * @date 2021/3/22 8:56
 */
@Data
public class FinanceProductOderInfoVO {

    //订单编号
    private String orderNumber;

    //合同id
    private String contractId;

    //合同状态
    private String orderStatus;

    //订单应回款
    private BigDecimal orderActualTotalAmount;

    //订单已回款
    private BigDecimal returnMoneyAmount;

    //剩余尾款
    private BigDecimal residueMoneyAmount;

    //订单所有人
    private String createPeopleName;

    //订单所屬分公司
    private String companyName;
    //订单所屬分公司全称
    private String trueCompanyName;

    //客户名称
    private String customerName;

    //付款账号
    private String paymentAccount;

    //订单创建时间
    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTm;

    //预回款金额
    private BigDecimal preReturnMoneyTotal;


    //订单产品
    private List<FinanceProductVO> products;

    public String getCreateTm() {
        return DateUtil.formatDateTime(createTm);
    }



}
